{extend name="public:layout" /}
{block name="title"}修改模型{/block}
{block name="head"}{/block}
{block name="body"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox">
        <div class="ibox-title">
            <ol class="breadcrumb">
                <li><i class="fa fa-hand-o-right"></i> <a href="{:url('index')}"> 模型管理</a></li>
                <li class="active">修改模型</li>
            </ol>
        </div>
        <div class="ibox-content">
            <form method="post" class="form-horizontal" id="form">
                <input type="hidden" name="mid" value="{$info.mid}"/>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">模型名称</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" placeholder="请输入模型名称"
                               name="moudle_name" value="{$info.moudle_name}" datatype="*"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">表名</label>
                    <div class="col-sm-4">
                        <p class="form-control-static">{$info.table_name}</p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">描述</label>
                    <div class="col-sm-6">
                        <textarea name="description" class="form-control"
                                  placeholder="请填写备注信息" rows="3">{$info.description}</textarea>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">状态</label>
                    <div class="col-sm-6">
                        <label class="radio-inline i-checks">
                            <input type="radio" checked name="enable" value="1"
                                   {eq name="info.enable" value="1" }checked{/eq} /> 启用
                        </label>
                        <label class="radio-inline i-checks">
                            <input type="radio" name="enable" value="0"
                                   {eq name="info.enable" value="0" }checked{/eq} />禁用
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-10 col-sm-offset-2">
                        <button class="btn btn-primary" type="button" id="btnSub">保存内容</button>
                        <a href="{:url('index')}" class="btn btn-white">取消</a>
                        <span id="validError"></span>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script type="text/javascript">
    $(function () {
        iCheck();
        ajaxSubForm('#btnSub');
    })
</script>
{/block}